Exemplo n.º 1
0
 public JsonResult Delete(int id)
 {
     try
     {
         _loaiPhongRepository.Delete(id);
         _unitOfWork.Commit();
         return(Json(new
         {
             status = true
         }));
     }
     catch (Exception ex)
     {
         return(Json(new
         {
             status = false
         }));
     }
 }