public ServiceResult<LogDatabase> Edit(LogDatabase obj) { try { IMediator service = _container.GetInstance<IMediator>(); IUserContext currentUser = _container.GetInstance<IUserContext>(); var query = new LogDatabaseEditQuery(); query.LogDatabase = obj; return new ServiceResult<LogDatabase>(service.Proccess(query), message: ClientErrorMessage.Success(), state: ServiceResultStates.SUCCESS); } catch(ExceptionLog ex) { LoggerService.Logger.Log(_container, ex); return new ServiceResult<LogDatabase>(result: null, message: ClientErrorMessage.Error(), state: ServiceResultStates.ERROR); } }
public ServiceResult<LogDatabase> Edit(LogDatabase obj) { LogDatabaseService service = new LogDatabaseService(_container); return service.Edit(obj); }