Beispiel #1
0
        public bool DodajSliku(int OsobaID = 0, IFormFile Image = null)
        {
            LoginInfo Log = HttpContext.Session.GetObjectFromJson <LoginInfo>("LoggedUser");



            if (Log.OsobaID == 0 || Image == null)
            {
                return(false);
            }
            else
            {
                FileManagment FileManagment = new FileManagment();
                return(FileManagment.DodajSliku(0, OsobaID, Image));
            }
        }
Beispiel #2
0
        //idk
        public bool Upload(int IgraID, IFormFile Image)
        {
            FileManagment p = new FileManagment();

            return(p.DodajSliku(IgraID, 0, Image, db));
        }