init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,30 @@
|
|||
using System.Collections.Generic;
|
||||
using Kreta.BusinessLogic.Helpers;
|
||||
using Kreta.Web.Helpers;
|
||||
|
||||
namespace Kreta.Web.Areas.Orarend.Logic
|
||||
{
|
||||
public class AdminNemElerhetoOrarendiElemekLogic
|
||||
{
|
||||
public static int DeleteSelectedOrarendiOra(List<int> idList)
|
||||
{
|
||||
var helper = new OrarendiOraHelper(ConnectionTypeExtensions.GetSessionConnectionType());
|
||||
|
||||
var sikeresekSzama = 0;
|
||||
|
||||
foreach (var orarendiOraId in idList)
|
||||
{
|
||||
try
|
||||
{
|
||||
helper.DeleteOrarendiElem(orarendiOraId);
|
||||
sikeresekSzama++;
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
return sikeresekSzama;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue