예제 #1
0
        public async Task <IActionResult> RemoveRepair(long repairId)
        {
            try
            {
                await _repairsRepository.RemoveRepair(repairId);

                return(Json(
                           new
                {
                    Success = true,
                    Data = "ok"
                }));
            }
            catch (Exception exception)
            {
                return(Json(new { Success = false, exception.Message }));
            }
        }
 public Task RemoveRepair(int architectureId, RestorationKind restorationKind, DateTime restorationDate)
 {
     return(_repairsRepository.RemoveRepair(architectureId, restorationKind, restorationDate));
 }