コード例 #1
0
        public HttpResponseMessage ResendOTP(SignupVM model)
        {
            try
            {
                var result = _repo.ResendOTP(model.MobileNo, model.Email);
                if (result)
                {
                    return(Request.CreateResponse(HttpStatusCode.OK, new { success = true, message = "Created Successfully!" }));
                }

                return(Request.CreateResponse(HttpStatusCode.OK, new { success = false, message = "User Creation has failed!" }));
            }
            catch (Exception ex)
            {
                return(Request.CreateResponse(HttpStatusCode.OK, new { success = false, message = ex.Message }));
            }
        }