Пример #1
0
        public FaceController(FaceServices services)
        {
            _services = services;
            FaceModel fm = new FaceModel();

            fm.Id   = 1;
            fm.name = "Robinhood";
            _services.AddFaceItems(fm);
            //azura = new AzuraOwn();
        }
Пример #2
0
        public ActionResult <FaceModel> AddPerson(FaceModel items)
        {
            //return Ok();
            var nameItems = _services.AddFaceItems(items);

            if (nameItems == null)
            {
                return(NotFound());
            }

            return(nameItems);
        }