public async Task <ActionResult> DeleteFeeSetting(int projectid, int projectFeeSettingId)
        {
            var project = await ProjectRepository.GetProjectAsync(projectid);

            if (project == null)
            {
                return(HttpNotFound());
            }

            try
            {
                await FinanceService.DeleteFeeSetting(projectid, projectFeeSettingId);

                return(RedirectToAction("Setup", new { projectid }));
            }
            catch
            {
                //TODO: Message that comment is not added
                return(RedirectToAction("Setup", new { projectid }));
            }
        }
        public async Task <ActionResult> DeleteFeeSetting(int projectid, int projectFeeSettingId)
        {
            var project = await ProjectRepository.GetProjectAsync(projectid);

            var errorResult = AsMaster(project, acl => acl.CanManageMoney);

            if (errorResult != null)
            {
                return(errorResult);
            }

            try
            {
                await FinanceService.DeleteFeeSetting(projectid, CurrentUserId, projectFeeSettingId);

                return(RedirectToAction("Setup", new { projectid }));
            }
            catch
            {
                //TODO: Message that comment is not added
                return(RedirectToAction("Setup", new { projectid }));
            }
        }