//Gets the list of all intervention associated with a site engineer public IList <ListInterventions> GetInterventionsForUser() { var repos = new ListInterventionsRepository(context); var list = repos.GetAllInterventionsForUser(Utils.getInstance.GetCurrentUserId()); return(list); }
//Gets the list of all intervention associated with a client in the same district public IList <ListInterventions> GetInterventionsForClientInSameDistrict(string clientid) { try { var repos = new ListInterventionsRepository(context); var list = repos.GetAllInterventionsForClientInSameDistrict(Convert.ToInt32(clientid)); return(list); } catch { throw new FaliedToRetriveRecordException(); } }
//Gets the list of all intervention associated with a client public IList <ListInterventions> GetInterventionsForClient(string clientid) { try { var repos = new ListInterventionsRepository(context); var list = repos.GetAllInterventionsForClient(Utils.getInstance.GetCurrentUserId(), Convert.ToInt32(clientid)); return(list); } catch { throw new FaliedToRetriveRecordException(); } }