Beispiel #1
0
 public IHttpActionResult DeleteEp(DtoDeleteEmp e)
 {
     empService.delete(e);
     return(Ok("Deleted Successfullully " + e.id));
 }
        public void delete(DtoDeleteEmp e)
        {
            var emp = employees.SingleOrDefault(x => x.id == e.id);

            employees.Remove(emp);
        }