public bool Post([FromBody] CheckExistingEmailAddress m_CheckExistingEmailAddress) { try { return(new IntellidateR1.User().CheckExistingEmailAddress(m_CheckExistingEmailAddress.EmailAddress)); } catch (Exception) { return(true); } }
// POST api/<controller> public bool Post([FromBody] CheckExistingEmailAddress m_CheckExistingEmailAddress) { try { if (HttpContext.Current.User.Identity.Name != "") { int _UserID = Convert.ToInt32(HttpContext.Current.User.Identity.Name); return(new IntellidateR1.User().CheckExistingEmailAddress(_UserID, m_CheckExistingEmailAddress.EmailAddress)); } else { return(new IntellidateR1.User().CheckExistingEmailAddress(m_CheckExistingEmailAddress.EmailAddress)); } } catch (Exception) { return(true); } }