// update project details public int UpdateProjectDetails(ProjectDetail projectDetail) { if (projectGateway.IfAnyEntryExists(projectDetail)) { return(2); } else { int rowsAffected = projectGateway.UpdateProjectDetails(projectDetail); if (rowsAffected > 0) { return(1); } else { return(0); } } }