public ResponseModel <Photo> Update(Photo entity) { try { responseModel.result = entity; _logger.Log(LogLevel.Information, "Fotoğraf güncellendi"); responseModel.Success = _photoDAL.Update(entity); return(responseModel); } catch (Exception ex) { _logger.LogError(ex, ex.Message + "Fotoğraf güncelleme hatası"); responseModel.Success = false; responseModel.Message = ex.Message; return(responseModel); } }
public bool Update(PhotoInfo model) { return(dal.Update(model)); }
public bool Update(Photo model) { return(_PhotoDAL.Update(model) > 0); }