Ejemplo n.º 1
0
        public async Task <IActionResult> EditProject(int ProjectId, ProjectViewModel project)
        {
            try
            {
                ResponseViewModel ResObj = await _projectRepo.EditProject(ProjectId, project);

                if (ResObj.Status == false && ResObj.Messege == "Something Went Wrong !")
                {
                    return(BadRequest(ResObj));
                }
                else
                {
                    return(Ok(ResObj));
                }
            }
            catch (Exception ex)
            {
                return(null);
            }
        }