Example #1
0
 public object AddClient([FromBody] Client client)
 {
     if (ClientBLL.CheckIsDuplicate(Guid.Empty, client.ClientIdentity))
     {
         return(new { Success = false, Duplicated = true });
     }
     ClientBLL.CreateClient(client);
     return(new { Success = true });
 }