public object GetAllStatus()
        {
            ResponseDetails responseDetails = new ResponseDetails();

            try
            {
                List <Project_StatusViewModel> model = projectStatusService.GetAll();
                responseDetails = Helper.SetResponseDetails("", true, model, MessageType.Success);
            }
            catch (Exception ex)
            {
                responseDetails = Helper.SetResponseDetails("Exception encuntered : " + ex.Message, false, ex, MessageType.Error);
            }

            return(responseDetails);
        }
Exemplo n.º 2
0
 [HttpGet("[action]")] // Matches '/Project/ProjectStatus'
 public IActionResult ProjectStatus()
 {
     return(Ok(projectStatusService.GetAll()));
 }