public HttpResponseMessage CheckUserLogin(PMSModels.CheckLogin checkLogin) { try { var objuser = new ClsUser(); return(Request.CreateResponse(HttpStatusCode.OK, objuser.CheckUserLogin(checkLogin))); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } }