public async Task <JsonResult> SaveCollectionFollowUp(CollectionFollowUpViewModel collection) { collection.UserId = this.GetUserId; var result = await CollectionOpService.SaveCollectionFollowUp(Convert.ToInt32(collection.EventId), collection.UserId, collection.SelectedCollectionSts, collection.SelectedPriority, collection.RecallDate, collection.Remarks); return(Json(new { resultCd = result })); }
public async Task <JsonResult> GetCollFollowUp(string EventId) { var ddlCollectionFollowUp = new CollectionFollowUpViewModel { CollectionSts = await BaseService.GetRefLib("EventCollectionSts"), Priority = await BaseService.GetRefLib("Priority") }; var collectionFollowUpViewModel = (await CollectionOpService.GetCollFollowUp(EventId)).collectionFollowUps; return(Json(new { Model = collectionFollowUpViewModel, Selects = ddlCollectionFollowUp }, JsonRequestBehavior.AllowGet)); }