public ActionResult SaveSalesRep(string srcId, string srpId) { objResponse Response = new objResponse(); RoundRobinModel objRRSet = new RoundRobinModel(); try { objSourceManager.LinkSource(Convert.ToInt64(srcId), Convert.ToInt64(srpId)); if (Response.ErrorCode == 0) { objRRSet.source = objSourceManager.GetAllSource(); objRRSet.salesRep = objUserManager.GetUsers(); return(View("tempSetings", objRRSet)); } else { return(Json("", JsonRequestBehavior.AllowGet)); } } catch (Exception ex) { BAL.Common.LogManager.LogError("SaveSalesRep Post Method", 1, Convert.ToString(ex.Source), Convert.ToString(ex.Message), Convert.ToString(ex.StackTrace)); return(Json("", JsonRequestBehavior.AllowGet)); } }
public ActionResult Index() { RoundRobinModel objRRSet = new RoundRobinModel(); objRRSet.source = objSourceManager.GetAllSource(); objRRSet.salesRep = objUserManager.GetUsers(); return(View(objRRSet)); }