Git Product home page Git Product logo

notes-project-.netmvc's Introduction

Notes Project

Kurulum

  1. `HomeController` sınıfını projenize ekleyin.
  2. Bağımlılıklarınızı doğru şekilde yönetmek için gerekli NuGet paketlerini yükleyin.
  3. `NoteContext` sınıfının veritabanı bağlantısını yapılandırın.

Özellikler

  • Index metodu, veritabanındaki tüm notları alır ve bir görünüme ileterek kullanıcıya gösterir.
  • Create metodu, yeni bir not oluşturmak için HTTP GET isteğini işler ve oluşturma formunu kullanıcıya gösterir. Ayrıca tüm notları içeren bir SelectList nesnesini görünüme iletir.
  • Create metodu, yeni bir not oluşturmak için HTTP POST isteğini işler. Eğer gelen veriler geçerliyse, notu veritabanına ekler ve ilgili yönlendirmeyi yapar. Geçerli veriler yoksa, oluşturma formunu hatalarla birlikte tekrar gösterir.
  • Delete metodu, belirtilen bir notu silmek için HTTP POST isteğini işler. Silinecek notu veritabanından bulur, alt notlarıyla birlikte siler ve ilgili yönlendirmeyi yapar.
  • MoveChildNotes metodu, silinen bir notun altındaki notları üst notun altına taşır.

Kullanım

  1. Index metodu, uygulamanın ana sayfasında tüm notları görüntülemek için kullanılır.
  2. Create metodu, yeni bir not oluşturmak için kullanılır. Bu metot, bir HTTP GET isteği ile çağrıldığında not oluşturma formunu gösterir ve bir HTTP POST isteği ile çağrıldığında yeni notu kaydeder.
  3. Delete metodu, belirtilen bir notu silmek için kullanılır. Silinecek notun kimliği id parametresi olarak alınır.

notes-project-.netmvc's People

Contributors

dxtaner avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.