public IActionResult GetSpaces()
        {
            var spaces = _spaceService.GetSpaces();
            var model  = _mapper.Map <IList <Space> >(spaces);

            return(Ok(model));
        }
Beispiel #2
0
        public IActionResult GetSpaces()
        {
            var spaces = _spaceService.GetSpaces();

            Console.WriteLine("\n" + spaces + "\n");
            var model = _mapper.Map <IList <Space> >(spaces);

            return(Ok(model));
        }
 public APIResponse GetSpaces()
 {
     try
     {
         return(new APIResponse
         {
             returnCode = 0,
             returnMessage = "Success",
             returnObject = _spaceService.GetSpaces()
         });
     }
     catch (Exception ex)
     {
         return(new APIResponse
         {
             returnCode = -1
         });
     }
 }
Beispiel #4
0
 public APIResponse GetSpaces(string ModuleID, string UserGUID)
 {
     try
     {
         return(new APIResponse
         {
             returnCode = 0,
             returnMessage = "Success",
             returnObject = _spaceService.GetSpaces(ModuleID, UserGUID)
         });
     }
     catch (Exception ex)
     {
         return(new APIResponse
         {
             returnCode = -1,
             returnMessage = ex.Message.ToString()
         });
     }
 }