コード例 #1
0
        public JsonResult ChkEmailExistsOrNot(string emailId)
        {
            try
            {
                var result = CustomerCRUD.ChkEmailExistsOrNot(emailId);
                return(Json(result));
            }
            catch (Exception ex)
            {
                ExceptionLogDomain obj = new ExceptionLogDomain();
                obj.MethodName     = "ChkEmailExistsOrNot";
                obj.ControllerName = "Customer";
                obj.ErrorText      = ex.Message;
                obj.StackTrace     = ex.StackTrace;
                obj.Datetime       = DateTime.Now;

                ExceptionLogCRUD.AddToExceptionLog(obj);
                return(Json(false));
            }
        }