private static MsCrmResult CancelFoldhome(MobilService client, CustomerDetailResult customerDetailReturn, string customerId, CustomerType customerType, string foldhomeId) { Foldhome foldhomeActivity = new Foldhome(); foldhomeActivity.FoldhomeId = foldhomeId; string result = client.UpdateStatusFoldhome(foldhomeActivity); JavaScriptSerializer set = new JavaScriptSerializer(); set.MaxJsonLength = Int32.MaxValue; MsCrmResult returnValue = set.Deserialize <MsCrmResult>(result); return(returnValue); }
private static MsCrmResult UpdateFoldhome(MobilService client, CustomerDetailResult customerDetailReturn, string customerId, CustomerType customerType, string foldhomeId) { Foldhome foldhomeActivity = new Foldhome(); foldhomeActivity.Amount = Convert.ToDecimal(90); foldhomeActivity.StartDate = new DateTime(2016, 07, 30, 10, 00, 00); foldhomeActivity.EndDate = new DateTime(2016, 07, 30, 18, 00, 00); foldhomeActivity.FoldhomeId = foldhomeId; foldhomeActivity.SurveyResult = 5; string result = client.UpdateFoldhome(foldhomeActivity); JavaScriptSerializer set = new JavaScriptSerializer(); set.MaxJsonLength = Int32.MaxValue; MsCrmResult returnValue = set.Deserialize <MsCrmResult>(result); return(returnValue); }
private static MsCrmResult CreateFoldhome(MobilService client, CustomerDetailResult customerDetailReturn, string customerId, CustomerType customerType) { Foldhome foldhomeActivity = new Foldhome(); foldhomeActivity.Amount = Convert.ToDecimal(60); foldhomeActivity.CustomerId = customerId; foldhomeActivity.CustomerType = customerType; foldhomeActivity.StartDate = new DateTime(2016, 07, 30, 10, 00, 00); foldhomeActivity.EndDate = new DateTime(2016, 07, 30, 12, 00, 00); foldhomeActivity.ProjectCode = customerDetailReturn.QuoteList[0].ProjectCode; foldhomeActivity.RoomType = RoomType.MiniFutbol; string result = client.CreateFoldhome(foldhomeActivity); JavaScriptSerializer set = new JavaScriptSerializer(); set.MaxJsonLength = Int32.MaxValue; MsCrmResult returnValue = set.Deserialize <MsCrmResult>(result); return(returnValue); }