Пример #1
0
        public void DeleteAssociateTest()
        {
            var associate = associatesService.GetAssociate(586790);

            associatesService.RemoveAssociate(associate);
            var assoc = associatesService.GetAssociate(586790);

            Assert.Null(assoc);
        }
Пример #2
0
 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));
 }