public void DeleteAssociateTest() { var associate = associatesService.GetAssociate(586790); associatesService.RemoveAssociate(associate); var assoc = associatesService.GetAssociate(586790); Assert.Null(assoc); }
public HttpResponseMessage DeleteAssociate([FromBody] AssociateModel associate) { try { var input = Helper.CastObject <Associate>(associate); _associatesService.RemoveAssociate(input); } catch (Exception ex) { _logManager.WriteLog(ex); } return(ToJson(associate)); }