public override Common.DTO.Location Map(Data_Access_Layer.Location entity) { var dto = base.Map(entity); Map(entity, dto); return(dto); }
public async Task AddLocation(AddLocation model) { var location = new Data_Access_Layer.Location() { Name = model.Name }; await LocationRepository.Add(location); }
public virtual Common.DTO.Location Map(Data_Access_Layer.Location entity) { return(new Common.DTO.Location { Id = entity.Id, Name = entity.Name, CreatedAt = entity.CreatedAt, LastModifiedAt = entity.LastModifiedAt }); }
public async Task EditLocation(EditLocation model) { var location = new Data_Access_Layer.Location() { Id = model.Id, Name = model.Name }; LocationRepository.Update(location); }