Beispiel #1
0
 public AIA.Life.Models.Opportunity.Suspect SaveSuspect(AIA.Life.Models.Opportunity.Suspect objSuspect)
 {
     #region Call API
     objSuspect = WebApiLogic.GetPostComplexTypeToAPI <AIA.Life.Models.Opportunity.Suspect>(objSuspect, "SaveSuspect", "Suspect");
     #endregion
     return(objSuspect);
 }
Beispiel #2
0
 public AIA.Life.Models.Opportunity.Suspect  SaveSuspect(AIA.Life.Models.Opportunity.Suspect objSuspect)
 {
     // string ObjSuspect= Newtonsoft.Json.JsonConvert.SerializeObject(objSuspect);
     AIA.Life.Business.Prospect.ProspectBusiness objProspectBusiness = new AIA.Life.Business.Prospect.ProspectBusiness();
     objSuspect = objProspectBusiness.SaveSuspect(objSuspect);
     return(objSuspect);
 }
Beispiel #3
0
 public ActionResult SaveSuspect(AIA.Life.Models.Opportunity.Suspect objSuspect)
 {
     try
     {
         objSuspect.CreatedBy = _username;
         objSuspect           = objProspectBusiness.SaveSuspect(objSuspect);
         var ObjResponse = new { Message = objSuspect.Message, ContactID = objSuspect.ContactID, Error = objSuspect.Error.ErrorMessage };
         return(Json(ObjResponse, JsonRequestBehavior.AllowGet));
     }
     catch (Exception e)
     {
         return(Json(objSuspect.Message, JsonRequestBehavior.AllowGet));
     }
 }
        public AIA.Life.Models.Opportunity.Suspect SaveSuspect(AIA.Life.Models.Opportunity.Suspect objSuspect)
        {
            try
            {
                ProspectLogic objlogic = new ProspectLogic();

                return(objlogic.SaveSuspect(objSuspect));
            }
            catch (Exception e)
            {
                log4net.GlobalContext.Properties["ErrorCode"] = objSuspect.Error.ErrorCode = Codes.GetErrorCode();
                Logger.Error(e);
                objSuspect.Error.ErrorMessage = "Please inform the IT HelpDesk on this application issue. Error Code is " + objSuspect.Error.ErrorCode + ". Sorry for the inconvenience caused";
                return(objSuspect);
            }
        }
Beispiel #5
0
 public AIA.Life.Models.Opportunity.Suspect LoadOccupation(AIA.Life.Models.Opportunity.Suspect objSuspect)
 {
     AIA.Life.Business.Prospect.ProspectBusiness objProspectBusiness = new AIA.Life.Business.Prospect.ProspectBusiness();
     objSuspect = objProspectBusiness.LoadOccupation(objSuspect);
     return(objSuspect);
 }
        public AIA.Life.Models.Opportunity.Suspect LoadOccupation(AIA.Life.Models.Opportunity.Suspect objSuspect)
        {
            CommonBusiness ObjCommonBusiness = new CommonBusiness();

            return(ObjCommonBusiness.LoadMastersOccupation(objSuspect));
        }
        public AIA.Life.Models.Opportunity.Suspect LoadType(AIA.Life.Models.Opportunity.Suspect objSuspect)
        {
            CommonBusiness ObjCommonBusiness = new CommonBusiness();

            return(ObjCommonBusiness.LoadType(objSuspect));
        }