public HttpResponseMessage GetLeavesForAMonth(int Month)
 {
     //method to get all emoloyee leaves for current month view.
     using (APIModelEntities entity = new APIModelEntities())
     {
         return(Request.CreateResponse(HttpStatusCode.OK, entity.GetLeavesForAMonth(Month).ToList()));
     }
 }