Example #1
0
 /// <summary>
 /// Get Designations
 /// </summary>
 public DesignationSearchRequestResponse Get([FromUri] DesignationSearchRequest request)
 {
     if (request == null || !ModelState.IsValid)
     {
         throw new HttpException((int)HttpStatusCode.BadRequest, "Invalid Request");
     }
     return(designationService.SearchDesignation(request).CreateFrom());
 }