code_corps v0.0.1 CodeCorps.Projects View Source

Work with CodeCorps.Projects.

Link to this section Summary

Link to this section Functions

Link to this function create(params, user) View Source
create(map(), CodeCorps.User.t()) ::
  {:ok, CodeCorps.Project.t()} |
  {:error, Ecto.Changeset.t()}

Create a project.

Link to this function update(project, params, user) View Source
update(CodeCorps.Project.t(), map(), CodeCorps.User.t()) ::
  {:ok, CodeCorps.Project.t()} |
  {:error, Ecto.Changeset.t()}

Update a project.