private async Task CreateNoteCommandExecute()
        {
            var ci = CrossMultilingual.Current.CurrentCultureInfo;

            if (string.IsNullOrWhiteSpace(Description))
            {
                var descriptionEmptyMessageLocalized =
                    Resmgr.Value.GetString(ConstantsHelper.DescriptionEmptyMessage, ci);
                _alertService.ShowOkAlert(descriptionEmptyMessageLocalized, ConstantsHelper.Ok);
                return;
            }
            var noteModel = new NoteModel
            {
                // UserId = Settings.CurrentUserId,
                UserId      = "05f9947f-6e27-44fc-a7d7-16c2f9189331",
                Description = Description,
                Date        = DateTime.Now
            };
            var photosModels = Photos.ToPhotoModels();

            //foreach (var photoModel in photosModels)
            //{
            //    photoModel.Note = noteModel;
            //}
            noteModel.Photos = photosModels.ToArray();

            // await App.NoteRepository.CreateAsync(noteModel);
            // await App.NoteRepository.SaveAsync();
            var result = await NotesService.Create(noteModel);

            if (result)
            {
                MessagingCenter.Send(this, ConstantsHelper.ShouldUpdateUI);
            }
        }
        public ActionResult <Notes> Post(Notes notes)
        {
            _notesService.Create(notes);

            return(notes);
        }