Build your New Platform For Future
Removes all the current representations of the target resource given by URI.
public HttpResponseMessage DeleteEmployee(int id)
{
Employee emp = this.Getemployees(uid);
{
if(emp==null)
{
throw new HttpResponseExecption(HttpStatusCode.NotFound);
_emp.Remove(emp);
var response = new HttpResponseMesssage();
response.Headers.Add("DeleteMessage","Deleted");
return response;
}