public ActionResult DeleteConfirm(int id)
        {
            Responses responses = PayrollPeriodRepo.Delete(id);

            if (responses.Success)
            {
                return(Json(new { success = true }, JsonRequestBehavior.AllowGet));
            }
            return(Json(new { success = false, message = "Error msg" }, JsonRequestBehavior.AllowGet));
        }
Beispiel #2
0
 // DELETE api/<controller>/5
 public Responses Delete(int id)
 {
     return(PayrollPeriodRepo.Delete(id));
 }