public ActionResult ModifyDraftMessage(string draftid, string draftmsg) { User objUser = (User)Session["User"]; Api.Drafts.Drafts ApiobjDrafts = new Api.Drafts.Drafts(); string retmsg= ApiobjDrafts.UpdateDraftsMessage(draftid, objUser.Id.ToString(), Session["group"].ToString(), draftmsg); return Content(retmsg); }
public ActionResult loaddrafts() { User objUser = (User)Session["User"]; Api.Drafts.Drafts ApiobjDrafts = new Api.Drafts.Drafts(); List<Drafts> lstScheduledMessage = (List<Drafts>)(new JavaScriptSerializer().Deserialize(ApiobjDrafts.GetDraftMessageByUserIdAndGroupId(objUser.Id.ToString(), Session["group"].ToString()), typeof(List<Drafts>))); return PartialView("_DraftPartial", lstScheduledMessage); }
public ActionResult DeleteDraftMessage(string draftid) { Domain.Myfashion.Domain.User objUser = (Domain.Myfashion.Domain.User)Session["User"]; Api.Drafts.Drafts ApiobjDrafts = new Api.Drafts.Drafts(); string retmsg = ApiobjDrafts.DeleteDrafts(draftid); return Content(retmsg); }
public ActionResult DeleteDraftMessage(string draftid) { Domain.Myfashion.Domain.User objUser = (Domain.Myfashion.Domain.User)Session["User"]; Api.Drafts.Drafts ApiobjDrafts = new Api.Drafts.Drafts(); string retmsg = ApiobjDrafts.DeleteDrafts(draftid); return(Content(retmsg)); }
public ActionResult ModifyDraftMessage(string draftid, string draftmsg) { Domain.Myfashion.Domain.User objUser = (Domain.Myfashion.Domain.User)Session["User"]; Api.Drafts.Drafts ApiobjDrafts = new Api.Drafts.Drafts(); string retmsg = ApiobjDrafts.UpdateDraftsMessage(draftid, objUser.Id.ToString(), Session["group"].ToString(), draftmsg); return(Content(retmsg)); }
public ActionResult loaddrafts() { Domain.Myfashion.Domain.User objUser = (Domain.Myfashion.Domain.User)Session["User"]; Api.Drafts.Drafts ApiobjDrafts = new Api.Drafts.Drafts(); List <Drafts> lstScheduledMessage = (List <Drafts>)(new JavaScriptSerializer().Deserialize(ApiobjDrafts.GetDraftMessageByUserIdAndGroupId(objUser.Id.ToString(), Session["group"].ToString()), typeof(List <Drafts>))); return(PartialView("_DraftPartial", lstScheduledMessage)); }
public ActionResult SaveDraft(string scheduledmessage) { Domain.Myfashion.Domain.User objUser = (Domain.Myfashion.Domain.User)Session["User"]; Api.Drafts.Drafts ApiobjDrafts = new Api.Drafts.Drafts(); string retmsg = ApiobjDrafts.AddDraft(objUser.Id.ToString(), Session["group"].ToString(), DateTime.Now, scheduledmessage); return(Content(retmsg)); }
public ActionResult SaveDraft(string scheduledmessage) { User objUser = (User)Session["User"]; Api.Drafts.Drafts ApiobjDrafts = new Api.Drafts.Drafts(); string retmsg = ApiobjDrafts.AddDraft(objUser.Id.ToString(),Session["group"].ToString(),DateTime.Now,scheduledmessage); return Content(retmsg); }