コード例 #1
0
        public JsonResult Delete(int id)
        {
            currency dbItem = RepoCurrency.FindByPk(id);
            ResponseModel response = new ResponseModel(true);
            string message;

            //if (!RepoCurrency.IsAllowDelete(dbItem))
            //{
            //    message = HttpContext.GetGlobalResourceObject("MyGlobalMessage", "DeleteFailedForeignKey").ToString();
            //    response.SetFail(message);
            //}
            //else
            //    RepoCurrency.Delete(dbItem);

            return Json(response);
        }
コード例 #2
0
        public JsonResult Delete(int id)
        {
            string template = "";
            ResponseModel response = new ResponseModel(true);
            m_project dbItem = RepoMProject.FindByPk(id);

            RepoMProject.Delete(dbItem);

            return Json(response);
        }
コード例 #3
0
        public JsonResult Delete(int id)
        {
            string template = "";
            ResponseModel response = new ResponseModel(true);
            company dbItem = RepoCompany.FindByPk(id);

            RepoCompany.Delete(dbItem);

            return Json(response);
        }
コード例 #4
0
        public JsonResult DeleteWhitelist(int id)
        {
            string template = "";
            ResponseModel response = new ResponseModel(true);
            Crew_Whitelist dbItem = RepoWhite.FindByPk(id);

            RepoWhite.Delete(dbItem);

            return Json(response);
        }
コード例 #5
0
        public JsonResult DeleteCrew(string barcode)
        {
            string template = "";
            ResponseModel response = new ResponseModel(true);
            Crew dbItem = RepoCrew.FindByPk(barcode);

            RepoCrew.Delete(dbItem);

            return Json(response);
        }
コード例 #6
0
        public JsonResult Delete(int id)
        {
            string template = "";
            ResponseModel response = new ResponseModel(true);
            tbKaryawan dbItem = RepoKaryawan.FindByPk(id);

            RepoKaryawan.Delete(dbItem);

            return Json(response);
        }