public async Task <string> Delete(int id) //public async Task<string> Delete([FromUri] int id, [FromBody] String name) { if (id <= 0) { return(BadRequest("Not a valid student id").ToString()); } var deleted = await _employeeRepository.DeleteByIdAsync(id); return("Id " + id + " was deleted successfully!"); }