public IHttpActionResult Get() { var mng = new ContactMethodManagement(); apiResponse.Data = mng.RetrieveAll(); return(Ok(apiResponse)); }
public IHttpActionResult Delete(ContactMethod contactMehtod) { var mng = new ContactMethodManagement(); mng.Delete(contactMehtod); apiResponse.Message = "Action was excecute"; return(Ok(apiResponse)); }
public IHttpActionResult Put(ContactMethod contactMethod) { var mng = new ContactMethodManagement(); mng.Update(contactMethod); apiResponse.Message = "Action was excecuted!"; return(Ok(apiResponse)); }
public IHttpActionResult Get(string id) { var mng = new ContactMethodManagement(); var contactMethod = new ContactMethod { OwnerId = id }; apiResponse.Data = contactMethod; return(Ok(contactMethod)); }