Beispiel #1
0
 public JsonResult CloseLead(string LeadId, string DescriptionText)
 {
     try
     {
         JazMaxIdentityHelper.UserName = User.Identity.Name;
         JazMax.Core.Leads.Status.LeadStatusLogic.CloseLead(Convert.ToInt32(LeadId), new Core.Leads.Activity.LeadActivity
         {
             CoreUserId     = JazMaxIdentityHelper.GetCoreUserId(),
             Description    = "Lead has been closed by " + JazMaxIdentityHelper.GetBasicUserInfo().DisplayName,
             IsSystem       = false,
             LeadActivityId = 6, //Lead CLosed
             LeadId         = Convert.ToInt32(LeadId)
         });
         return(Json(new JazMaxJsonHelper
         {
             Result = Common.Models.JsonResult.Success,
             Message = Common.Models.JsonMessage.Saved,
         }));
     }
     catch (Exception e)
     {
         return(Json(new JazMaxJsonHelper
         {
             Result = Common.Models.JsonResult.Error,
             Message = Common.Models.JsonMessage.Error,
         }));
     }
 }