public GarmentsFullModel MapDictionaryTofullGarmentsModel(Dictionary <string, string> dictionary) { var garmentsModel = new GarmentsFullModel(); //garmentsModel.CareInstructionsId = GetValueFromDict(dictionary, "CareInstructionsId"); //garmentsModel.GarmentId = GetValueFromDict(dictionary, "GarmentId"); //garmentsModel.GarmentColor = GetValueFromDict(dictionary, "GarmentColor"); //garmentsModel.GarmentGender = GetValueFromDict(dictionary, "GarmentGender"); //garmentsModel.CustomerId = GetValueFromDict(dictionary, "CustomerId"); //garmentsModel.GarmentLayer = GetValueFromDict(dictionary, "GarmentLayer"); //garmentsModel.GarmentLocation = GetValueFromDict(dictionary, "GarmentLocation"); //garmentsModel.GarmentMeasurementsId = GetValueFromDict(dictionary, "GarmentMeasurementsId"); //garmentsModel.GarmentName = GetValueFromDict(dictionary, "GarmentName"); //garmentsModel.GarmentStoredId = GetValueFromDict(dictionary, "GarmentStoredId"); return(garmentsModel); }
public GarmentsModel MapToGarmentsModel(GarmentsFullModel fullModel) { return(new GarmentsModel() { //FirstName = fullModel.FirstName, //LastName = fullModel.LastName, //MobleNumber = fullModel.MobleNumber, //PhoneNumber = fullModel.PhoneNumber, //EmailAddress = fullModel.EmailAddress, //CustomerType = fullModel.CustomerType, //BillingAddress = fullModel.BillingAddress, //City = fullModel.City, //CountryRegion = fullModel.CountryRegion, //PostalCode = fullModel.PostalCode, //StateOrProvince = fullModel.StateOrProvince }); }
public void UpdateGarment(GarmentsFullModel newGarment) { _dataAccess.DataUpdate(newGarment, GarmentTableName, GarmentId, Convert.ToInt32(newGarment.GarmentId)); }