예제 #1
0
        public async Task <IActionResult> Delete(int?id)
        {
            if (id == null || id < 1)
            {
                return(NotFound());
            }

            await hopDongRepository.Delete(id);


            return(Json("{\"code\":1}")); // 204 - Xử lý thành công nhưng không trả về g2

            // return new NoContentResult();
        }
예제 #2
0
 public bool Delete(HopDong entity)
 {
     return(_repository.Delete(entity));
 }