public async Task <JsonResult> ISRemove() { try { var id = Guid.Parse(Request.Form["id"]); var iid = Guid.Parse(Request.Form["iid"]); if (IS_ItemStockService.Remove(id, iid)) { return(Success(id.ToString())); } return(Failed(MessageUtilityService.FailedRemove("Stock"))); } catch { return(Failed(MessageUtilityService.ServerError())); } }
public async Task <JsonResult> Remove() { try { var id = Guid.Parse(Request.Form["id"]); var itemID = Guid.Parse(Request.Form["ii"]); if (IS_ItemStockService.Remove(id, itemID)) { return(Success("")); } return(Failed(MessageUtility.ServerError())); } catch { return(Failed(MessageUtility.ServerError())); } }