public bool ClosedFL(int id, bool isClosed) { var item = flowChartMasterRepository.GetById(id); if (isClosed) { item.Is_Closed = true; } else { item.Is_Closed = false; } flowChartMasterRepository.Update(item); unitOfWork.Commit(); return(true); }