Exemplo n.º 1
0
        public async Task <ApiResult <Clinic> > PutAsync(Clinic model)
        {
            _logger.LogInformation(_localizer["LogMethodCalled", "api/Clinic/Put"]);
            ApiResult <Clinic> response = await _clinicRepository.Edit(model);

            _logger.LogInformation(_localizer["LogMethodResult", "api/Clinic/Put", response.Deserialize()]);
            return(response);
        }
Exemplo n.º 2
0
 public ActionResult Edit(string id, string name)
 {
     try
     {
         _repository.Edit(id, name);
         return(RedirectToAction(nameof(List)));
     }
     catch
     {
         return(View());
     }
 }