-
Notifications
You must be signed in to change notification settings - Fork 0
/
ReleaseController.cs
52 lines (47 loc) · 1.44 KB
/
ReleaseController.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Denial_Coding.BAL.Generics;
using Denial_Coding.BAL.Managers;
using Denial_Coding.BAL.ViewModels;
namespace Denial_Coding.Controllers
{
public class ReleaseController : Controller
{
IReleaseService managerObj = new ReleaseManager();
public ActionResult Release()
{
return View();
}
public ActionResult LoadReleaseInbox()
{
return PartialView("_ReleaseInbox", managerObj.LoadReleaseInboxData());
}
[HttpPost]
public JsonResult ReleaseTransaction(string IMPID)
{
string arr = IMPID.ToString();
string[] array = arr.Split(',');
for (int i = 0; i < array.Count(); i++)
{
int imp_value = Convert.ToInt32(array[i].ToString());
if (imp_value == 0)
{
}
else
{
managerObj.ReleaseTransaction(imp_value);
}
}
return Json("", JsonRequestBehavior.AllowGet);
}
[HttpPost]
public JsonResult DeleteReleasedList(int IMPORT_ID)
{
managerObj.DeleteReleasedList(IMPORT_ID);
return Json("", JsonRequestBehavior.AllowGet);
}
}
}