public virtual ApiStudioServerResponseModel MapEntityToModel( Studio item) { var model = new ApiStudioServerResponseModel(); model.SetProperties(item.Id, item.Address1, item.Address2, item.City, item.Name, item.Province, item.Website, item.Zip); return(model); }
public virtual ApiStudioServerResponseModel MapServerRequestToResponse( int id, ApiStudioServerRequestModel request) { var response = new ApiStudioServerResponseModel(); response.SetProperties(id, request.Address1, request.Address2, request.City, request.Name, request.Province, request.Website, request.Zip); return(response); }