Beispiel #1
0
        public IActionResult GetMembersByUnit(UnitModel unit)
        {
            var list = new List <MemberModel>();

            try
            {
                using (TWHContext dbContext = new TWHContext())
                {
                    list = dbContext.GetMembersByUnit(unit.UnitId, unit.ItemId);
                }
            }
            catch (Exception ex)
            {
                AddException(ex, "GetMembersByUnit");
            }
            return(Ok(list));
        }