public IHttpActionResult RemoveEmployee(int id)
        {
            var employees = _employeeInfo.DeleteEmployees(id);

            if (employees == null)
            {
                return(NotFound());
            }
            return(Ok(employees));
        }
Example #2
0
 public IActionResult DeleteData(int id)
 {
     _employeeservices.DeleteEmployees(id);
     return(Ok("Deleted successfully"));
 }