public static SellerDto FroSeller(this SellerDto dto, Seller a) { dto.Id = a.Id; dto.FirstName = a.FirstName; dto.LastName = a.LastName; dto.Login = a.Login; dto.Password = a.Password; dto.Address = a.Address; dto.Phone = a.Phone; dto.Photo = a.Photo.ToImageDto(); return(dto); }
public static Seller ToSeller(this SellerDto dto) { return(new Seller() { Id = dto.Id, FirstName = dto.FirstName, LastName = dto.LastName, Login = dto.Login, Password = dto.Password, Address = dto.Address, Phone = dto.Phone, Photo = dto.Photo.ToImage() }); }