예제 #1
0
        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);
            }
        }
예제 #2
0
 public bool Update(PhotoInfo model)
 {
     return(dal.Update(model));
 }
 public bool Update(Photo model)
 {
     return(_PhotoDAL.Update(model) > 0);
 }