Exemple #1
0
 public IHttpActionResult DeleteGroup(GroupCompanyModel gcp)
 {
     if (gcp != default(GroupCompanyModel) && _group.DeleteGC(gcp).ToString() != "Deletion failed")
     {
         return(Ok("Deleted successfully"));
     }
     else
     {
         return(BadRequest("Not a valid group"));
     }
 }