public AllowedIpDto Update(AllowedIpDto poco) { var result = this._allowedIpService.Update(poco); ClearCache(); return(result); }
public AllowedIpDto Update(AllowedIpDto dto) { var poco = new AllowedIp() { Id = dto.Id, IpAddress = dto.IpAddress, Notes = dto.Notes, LastUpdated = DateTime.Now.ToUniversalTime() }; return(_repository.Update(poco).ToDto()); }
public static AllowedIpDto ToDto(this AllowedIp poco) { var dto = new AllowedIpDto() { Id = poco.Id, IpAddress = poco.IpAddress, Notes = poco.Notes, LastUpdated = poco.LastUpdated, }; return(dto); }