Ejemplo n.º 1
0
        //check the intervention and client are in same district or not
        private bool isInterventionClientInSameDistrict()
        {
            var repo   = new InterventionsRepository(context);
            var result = repo.GetInterventionForClientInSameDistrict(intUpdate.InterventionId, Utils.getInstance.GetCurrentUserId());

            if (!Utils.getInstance.isNullOrEmpty(result))
            {
                return(true);
            }
            else
            {
                throw new EditStatusPermissionException();
            }
        }