public ActionResult Create(T_CMS_Master_Salutation model)
 {
     try
     {
         if (ModelState.IsValid)
         {
             // model.CreatedUser = CurrentUser.UserName;
             if (model.SalutationID != 0)
             {
                 //get default value
                 //	T_CMS_Master_Salutation b = T_CMS_Master_SalutationManager.GetById(model.SalutationID);
                 T_CMS_Master_SalutationManager.Update(model);
             }
             else
             {
                 // TODO: Add insert logic here
                 model.CreatedDate = SystemConfig.CurrentDate;
                 T_CMS_Master_SalutationManager.Add(model);
             }
             return(View(ViewFolder + "list.cshtml", T_CMS_Master_SalutationManager.GetAll()));
         }
     }
     catch
     {
         return(View(model));
     }
     return(View(model));
 }
        public ContentResult SaveExcel(string item)
        {
            //string b = Request["item"];
            IEnumerable <T_CMS_Master_Salutation> objItemList = JsonConvert.DeserializeObject <IEnumerable <T_CMS_Master_Salutation> >(item);

            JsonObject obj = new JsonObject();

            obj.StatusCode = 200;
            obj.Message    = "The process is sucessed";
            foreach (T_CMS_Master_Salutation objitem in objItemList)
            {
                //default value
                //objitem.CreatedUser = CurrentUser.UserName;
                objitem.CreatedDate = SystemConfig.CurrentDate;

                T_CMS_Master_SalutationManager.Add(objitem);
            }

            return(Content(JsonConvert.SerializeObject(obj), "application/json"));
        }