public bool UpdateMeasurmentCM(MeasurmentCMDTO mm) { try { var m = (from x in db.measurementCM where mm.MCMID == x.MCMID select x).SingleOrDefault(); m.MCMID = mm.MCMID; m.customer_CID = mm.customer_CID; m.date = mm.date; m.butt = mm.butt; m.waist = mm.waist; m.hip = mm.hip; m.thigh = mm.thigh; m.armLoose = mm.armLoose; m.armFlexed = mm.armFlexed; m.shoulders = mm.shoulders; m.performedByTrainer = mm.performedByTrainer; db.SaveChanges(); return(true); } catch (Exception) { return(false); } }
public bool AddMeasurmentCM(MeasurmentCMDTO x) { try { var m = new measurementCM { MCMID = x.MCMID, customer_CID = x.customer_CID, date = x.date, butt = x.butt, waist = x.waist, hip = x.hip, thigh = x.thigh, armLoose = x.armLoose, armFlexed = x.armFlexed, shoulders = x.shoulders, performedByTrainer = x.performedByTrainer }; db.measurementCM.Add(m); db.SaveChanges(); return(true); } catch (Exception) { return(false); } }
public bool UpdateMeasurmentCM(MeasurmentCMDTO CM) { return(mcmq.UpdateMeasurmentCM(CM)); }
public bool AddMeasurmentCM(MeasurmentCMDTO CM) { return(mcmq.AddMeasurmentCM(CM)); }