Example #1
0
        public Result OfficeDelete(int id)
        {
            Office item = officeRepo.OfficeGetByID(id);

            item.IsDeleted = true;
            Result result = officeRepo.OfficeUpdate(item);

            if (result.IsSuccess)
            {
                cacheNinja.ClearCache("Office_GetAll");
            }
            return(result);
        }