Exemplo n.º 1
0
        public ActionResult GetAllHospitals()
        {
            SCloudServiceClient client = new SCloudServiceClient();
            OperationResultOfArrayOfHospitalDTObN2_PkCvD remote = client.GetAllHospitals();

            return(this.Json(remote));
        }
Exemplo n.º 2
0
        public ActionResult CheckUserIsExist(string userCode)
        {
            SCloudServiceClient client = new SCloudServiceClient();
            OperationResultOfUserDTObN2_PkCvD remote = client.IsUserCodeAlreadyExists(userCode);

            return(this.Json(remote));
        }
Exemplo n.º 3
0
        public ActionResult RegisterUser(UserDTO dto)
        {
            SCloudServiceClient client = new SCloudServiceClient();
            OperationResultOfUserDTObN2_PkCvD remote = client.AddUser(dto);

            return(this.Json(remote));
        }
Exemplo n.º 4
0
        public ActionResult CheckUserValid(string userID, string password)
        {
            SCloudServiceClient client = new SCloudServiceClient();
            OperationResultOfUserDTObN2_PkCvD remote = client.CheckUserValid(userID, password);

            //Session["UserName"]= remote.Data.UserName;
            return(this.Json(remote));
        }