Example #1
0
        public IHttpActionResult UpdateContactStatus([FromBody] ContactStatus contactstatus)
        {
            var contactstatusRepo = new ContactStatusRepository();
            var result            = contactstatusRepo.UpdateContactStatus(contactstatus);

            if (result <= 0)

            {
                return(Ok("Error occurred while updating the contact type status"));
            }
            return(Ok("Contact Status updated"));
        }