コード例 #1
0
        public JsonResult SaveUser(User objUser)
        {
            logginghelper.Log(LoggingLevels.Info, "Class: " + classname + " :: AddNewUser(Post) - Begin");
            ResponseDTO response = null;

            try
            {
                response = dataaccess.SaveUser(objUser);
            }
            catch (Exception ex)
            {
                logginghelper.Log(LoggingLevels.Error, "Class: " + classname + " ::  AddNewUser(Post)" + ex);
            }
            logginghelper.Log(LoggingLevels.Info, "Class: " + classname + " ::  AddNewUser(Post) - End");
            return(Json(response, JsonRequestBehavior.AllowGet));
        }