public IActionResult GetById(int id) { var subTask = _subTaskServices.GetById(id); return(View(subTask)); }
public async Task <IActionResult> Get(Guid companyId, int id) { var SubTask = await _subTaskService.GetById(companyId, id); return(Ok(Mapper.Map <SubTaskModel>(SubTask))); }